<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            {if $topmenus}
            {foreach $topmenus as $k=>$v}
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="{$v.title}">{$v.icon_code}</i>
                    <cite>{$v.title}</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                {if $menus}
                <ul class="sub-menu">
                    {foreach $menus as $mk=>$mv}
                    {foreach $mv as $ck=>$cv}
                    {if $cv.menu_id==$v.id}
                    <li>
                        <a onclick="xadmin.add_tab('{$cv.title}','{:url($cv.auth)}',true)">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>{$cv.title}</cite></a>
                    </li>
                    {/if}
                    {/foreach}
                    {/foreach}
                </ul>
                {/if}
            </li>
            {/foreach}
            {/if}

        </ul>
    </div>
</div>